# coding: utf-8
import os
y = "1"

while y =="1":
	os.system('clear')
	print('\n\n\t\t        四則演算')
	print('\t\t==========================\n')
	x = float(input('\t\t実数x = '))
	y = float(input('\t\t実数y = '))
	p = input('\t\t演算: +  -  *  /  // %\n')
	print(x, p, y, '=', end=' ')
	
	if p == "+":
		print(x + y)
	elif p == "-":
		print(x - y)
	elif p == "*":
		print(x * y)
	elif p == "/":
		print(x / y)
	elif p == "//":
		print(x // y)
	elif p == "%":
		print(x % y)
	else:
		print("入力ミス\n")
	y = input('\n\t\t 計算を 1:続ける  other: やめる\n') 
print('\nありがとうございました。.\n')
実行結果